package Visual;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import Logica.*;
import Logica.ItemPremio.Baliza;
import Logica.ItemPremio.Cono;
import Logica.ItemPremio.Nafta;
import Logica.ItemPremio.Puntos;
import Logica.Objetos.Caja;
import Logica.Pisos.Piso;

public class Nivel5 extends NivelVisual {

	//etiquetas de los objetos en el mapa
		private JLabel eti01;private JLabel eti02;private JLabel eti03;private JLabel eti04;private JLabel eti05;
		private JLabel eti06;private JLabel eti07;private JLabel eti08;private JLabel eti09;private JLabel eti010;
		private JLabel eti011;private JLabel eti012;private JLabel eti013;private JLabel eti014;private JLabel eti015;
		private JLabel eti016;private JLabel eti017;
	//paneles para los objetos en el mapa
		private JPanel pan1;private JPanel pan2;private JPanel pan3;private JPanel pan4;private JPanel pan5;
		private JPanel pan6;private JPanel pan7;private JPanel pan8;private JPanel pan9;private JPanel pan10;
		private JPanel pan11;private JPanel pan12;private JPanel pan13;private JPanel pan14;private JPanel pan15;
		private JPanel pan16;private JPanel pan17;

			private boolean[] ArrPan;
			
			public Nivel5(String r){
				super(r);
				setearLogica();	
				
				eti1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti2.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti3.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti4.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti5.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti6.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti7.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti8.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti9.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti10.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti11.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti12.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti13.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti14.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti15.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti16.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti17.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti18.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti19.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti20.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti21.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti22.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti23.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti24.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti25.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti26.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti27.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti28.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti29.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti30.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti31.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti32.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti33.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti34.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti35.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti36.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti37.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti38.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti39.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti40.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti41.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti42.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti43.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti44.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti45.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti46.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti47.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti48.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti49.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti50.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti51.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti52.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti53.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti54.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti55.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti56.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti57.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti58.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti59.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti60.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti61.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti62.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti63.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti64.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti65.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti66.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti67.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti68.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti69.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti70.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti71.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti72.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti73.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti74.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti75.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti76.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti77.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti78.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti79.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti80.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti81.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti82.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti83.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti84.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti85.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti86.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti87.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti88.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti89.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti90.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti91.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti92.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti93.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti94.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti95.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti96.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti97.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti98.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti99.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti100.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti101.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti102.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti103.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti104.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti105.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti106.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti107.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti108.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti109.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti110.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti111.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti112.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti113.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti114.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti115.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti116.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti117.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti118.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti119.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti120.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti121.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti122.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti123.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti124.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti125.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti126.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arenaLlegada.gif")));
				eti127.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arenaLargada.gif")));
				eti128.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti129.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti130.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti131.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti132.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti133.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti134.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti135.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti136.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti137.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/asfalto.gif")));
				eti138.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti139.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti140.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti141.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti142.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti143.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti144.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti145.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti146.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti147.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti148.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti149.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti150.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti151.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti152.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti153.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti154.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti155.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti156.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti157.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti158.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti159.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti160.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti161.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti162.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti163.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti164.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti165.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti166.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti167.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti168.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti169.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti170.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti171.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti172.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti173.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti174.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti175.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti176.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti177.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti178.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti179.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti180.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti181.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti182.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti183.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti184.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti185.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti186.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti187.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti188.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti189.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti190.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti191.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti192.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti193.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti194.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti195.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti196.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti197.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti198.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti199.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti200.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti201.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti202.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti203.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti204.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti205.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti206.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti207.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti208.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/arena.gif")));
				eti209.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti210.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti211.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti212.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti213.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti214.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti215.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti216.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti217.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti218.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti219.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti220.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti221.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti222.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti223.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti224.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti225.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti226.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti227.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/lava.gif")));
				eti228.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti229.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti230.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti231.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti232.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti233.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				eti234.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/agua.gif")));
				
				
				ArrPan=new boolean[17];
				for (int i=0; i<ArrPan.length;i++)
					ArrPan[i]=false;
			}

			public JPanel getPanel() {
				return Grilla;
			}
			
			public void sacarPanel(Coordenadas C){
				int i=0; boolean encontre=false;
				while (!encontre && i<ArrPan.length){
					if (ArrCoor[i].equals(C)){
						ArrPan[i]=true;
						encontre = true;}
					else i++;}
				if (i==0) {pan1.setVisible(false);}
					else if (i==1){pan2.setVisible(false);}
					else if (i==2) {pan3.setVisible(false);}
					else if (i==3) {pan4.setVisible(false);}
					else if (i==4) {pan5.setVisible(false);}
					else if (i==5) {pan6.setVisible(false);}
					else if (i==6) {pan7.setVisible(false);}
					else if (i==7) {pan8.setVisible(false);}
					else if (i==8) {pan9.setVisible(false);}
					else if (i==9) {pan10.setVisible(false);}
					else if (i==10) {pan11.setVisible(false);}
					else if (i==11) {pan12.setVisible(false);}
					else if (i==12) {pan13.setVisible(false);}
					else if (i==13) {pan14.setVisible(false);}
					else if (i==14) {pan15.setVisible(false);}
					else if (i==15) {pan16.setVisible(false);}
					else if (i==16) {pan17.setVisible(false);}
			}
			
			public void ponerPanel(Coordenadas c){
				boolean encontre=false; int i=0;
				while (!encontre && i<ArrPan.length){
					if (ArrPan[i]){
					ArrPan[i] = false;
					encontre = true;}
					else i++;}                                     
				ArrCoor[i].SetX(c.GetX());
				ArrCoor[i].SetY(c.GetY());
									
				if (i==4) {pan5.setVisible(true);eti05.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Baliza copia.gif"))));pan5.add(eti05);pan5.setBounds(c.GetX(),c.GetY(),34,34);}
				else if (i==5) {pan6.setVisible(true);eti06.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));pan6.add(eti06);pan6.setBounds(c.GetX(),c.GetY(),34,34);}
				else if (i==6) {pan7.setVisible(true);eti07.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));pan7.add(eti07);pan7.setBounds(c.GetX(),c.GetY(),34,34);}
				else if (i==7) {pan8.setVisible(true);eti08.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Baliza copia.gif"))));pan8.add(eti08);pan8.setBounds(c.GetX(),c.GetY(),34,34);}
				else if (i==15) {pan16.setVisible(true);eti016.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));pan16.add(eti016);pan16.setBounds(c.GetX(),c.GetY(),34,34);}
				else if (i==16) {pan17.setVisible(true);eti017.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));pan17.add(eti017);pan17.setBounds(c.GetX(),c.GetY(),34,34);}
}
			
			
			private void setearLogica(){
				Piso E; Coordenadas C;
				 for (int i=0;i<7;i++)
				 AgregarAgua(0,i*34);
				 for (int i=8;i<13;i++){
				AgregarLava(0,i*34);
				AgregarLava(340,i*34);}
				for (int i=0;i<5;i++){
				AgregarArena(i*34,34);
				AgregarArena(i*34,204);}
				for (int i=2;i<6;i++){
				 AgregarArena(i*34,0);
				for (int j=1;j<3;j++)
				AgregarAgua(i*34,j*34);
				AgregarAgua(i*34,204);
				AgregarAsfalto(i*34,238);
				AgregarAgua(i*34,272);}
				for (int j=1;j<10;j++)
				AgregarAgua(j*34,408);
				for (int j=11;j<18;j++){
				AgregarAgua(j*34,408);
				AgregarAgua(j*34,374);}
				for (int i=7;i<18;i++){
				 AgregarLava(i*34,0);
				 AgregarLava(i*34,34);}
				for (int i=4;i<8;i++)
				for (int j=8;j<11;j++)
				AgregarAsfalto(j*34,i*34);
				for (int i=9;i<12;i++)
				AgregarArena(136,i*34);
				for (int i=2; i<7;i++)
				AgregarAgua(238,i*34);
				for (int i=8;i<12;i++)
				AgregarArena(i*34,68);
				for (int i=12;i<18;i++)
				AgregarAgua(i*34,68);
				for (int i=2;i<5;i++)
				AgregarArena(i*34,102);
				for (int i=11;i<17;i++)
				AgregarArena(i*34,102);
				for (int i=1;i<4;i++)
				AgregarArena(i*34,374);
				for (int i=6;i<10;i++)
				AgregarArena(i*34,374);
				for (int i=11;i<15;i++)
				AgregarArena(i*34,170);
				for (int i=5;i<11;i++)
				AgregarArena(204,i*34);
				for (int i=8;i<11;i++){
				AgregarArena(306,i*34);
				AgregarArena(374,i*34);
				AgregarArena(578,i*34);}
				for (int i=11;i<16;i++){
				AgregarAgua(i*34,136);
				AgregarAgua((i+1)*34,272);}
				for (int i=11;i<14;i++){
				AgregarArena(i*34,238);
				AgregarAgua(i*34,204);}
				for (int i=3;i<6;i++){
				AgregarAgua(578,i*34);
				AgregarArena(544,(i+1)*34);
				AgregarAgua(510,(i+2)*34);
				AgregarAgua(272,(i+5)*34);
				AgregarAgua(238,(i+5)*34);}
				for (int i=3;i<5;i++)
				AgregarAgua(170,i*34);
				for (int i=10;i<12;i++)
				AgregarAgua(170,i*34);
				for (int i=4;i<6;i++){
				AgregarAgua(102,i*34);
				AgregarArena(136,i*34);}
				for (int i=9;i<11;i++){
				AgregarAgua(102,i*34);
				AgregarArena(510,i*34);
				AgregarArena(442,i*34);}
				for (int i=9;i<11;i++)
				AgregarAgua(i*34,102);
				for (int i=0;i<2;i++)
				AgregarArena(i*34,238);
				AgregarArena(34,170);
				AgregarArena(34,306);
				AgregarArena(476,238);
				AgregarArena(578,238);
				AgregarArena(272,102);
				AgregarArena(68,170);
				AgregarArena(68,306);
				AgregarArena(34,340);
				AgregarArena(238,238);
				AgregarArena(408,340);
				AgregarArena(544,340);
				AgregarArena(578,204);
				AgregarArena(476,204);
				AgregarArena(170,170);
				AgregarArena(170,306);
				AgregarArena(476,306);
				AgregarAgua(68,136);
				AgregarAgua(68,340);
				AgregarArena(34,204);
				AgregarArena(34,272);
				AgregarAgua(408,306);
				AgregarAgua(476,340);
				AgregarAgua(544,306);
				AgregarAgua(544,238);

				C = new Coordenadas(0,238);
				gnivelActual.SetPartida(C);
				gnivelActual.SetLlegada(new Coordenadas(578,204));
				gnivelActual.SetPosicionActual(C);
				gnivelActual.SetSentido("Este");
				C = new Coordenadas (238,238);
				E = gnivelActual.buscar(C);
				E.SetItem(new Baliza());
				C = new Coordenadas (374,238);
				E = gnivelActual.buscar(C);
				E.SetItem(new Baliza());
				C = new Coordenadas (306,272);
				E = gnivelActual.buscar(C);
				E.SetItem(new Cono());
				C = new Coordenadas (272,102);
				E = gnivelActual.buscar(C);
				E.SetItem(new Cono());
				C = new Coordenadas (68,238);
				E = gnivelActual.buscar(C);
				E.SetItem(new Cono());
				C = new Coordenadas (170,238);
				E = gnivelActual.buscar(C);
				E.SetItem(new Cono());
				C = new Coordenadas (170,170);
				E = gnivelActual.buscar(C);
				E.SetObjeto(new Caja());
				C = new Coordenadas (170,306);
				E = gnivelActual.buscar(C);
				E.SetObjeto(new Caja());
				C = new Coordenadas (476,102);
				E = gnivelActual.buscar(C);
				E.SetObjeto(new Caja());
				C = new Coordenadas (476,306);
				E = gnivelActual.buscar(C);
				E.SetObjeto(new Caja());
				//premios
				C = new Coordenadas (34,238);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				C = new Coordenadas (68,170);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				C = new Coordenadas (170,0);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				C = new Coordenadas (272,68);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				C = new Coordenadas (442,306);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Nafta(nivel));
				C = new Coordenadas (544,102);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				C = new Coordenadas (578,306);
				E = gnivelActual.buscar(C);
				E.SetPremio(new Puntos(nivel));
				
		}
				
			public void establecerObjetos(JPanel Grilla){
				//Objetos en el mapa
				ArrCoor=new Coordenadas[17];
				eti01=new JLabel();
				pan1=new JPanel();
				eti01.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan1.setBounds(34, 238, 34, 34);
				pan1.add(eti01);
				pan1.setOpaque(false);
				Grilla.add(pan1);
				ArrCoor[0]=new Coordenadas(34,238);
				
				eti02=new JLabel();
				pan2=new JPanel();
				eti02.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan2.setBounds(170, 0, 34, 34);
				pan2.add(eti02);
				pan2.setOpaque(false);
				Grilla.add(pan2);
				ArrCoor[1]=new Coordenadas(170,0);
				
				eti03=new JLabel();
				pan3=new JPanel();
				eti03.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Caja copia.gif"))));
				pan3.setBounds(170, 170, 34, 34);
				pan3.add(eti03);
				pan3.setOpaque(false);
				Grilla.add(pan3);
				ArrCoor[2]=new Coordenadas(170,170);
				
				eti04=new JLabel();
				pan4=new JPanel();
				eti04.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Caja copia.gif"))));
				pan4.setBounds(170, 306, 34, 34);
				pan4.add(eti04);
				pan4.setOpaque(false);
				Grilla.add(pan4);
				ArrCoor[3]=new Coordenadas(170,306);
				
				eti05=new JLabel();
				pan5=new JPanel();
				eti05.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Baliza copia.gif"))));
				pan5.setBounds(238, 238, 34, 34);
				pan5.add(eti05);
				pan5.setOpaque(false);
				Grilla.add(pan5);
				ArrCoor[4]=new Coordenadas(238,238);
				
				eti06=new JLabel();
				pan6=new JPanel();
				eti06.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));
				pan6.setBounds(272, 102, 34, 34);
				pan6.add(eti06);
				pan6.setOpaque(false);
				Grilla.add(pan6);
				ArrCoor[5]=new Coordenadas(272,102);
				
				eti07=new JLabel();
				pan7=new JPanel();
				eti07.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));
				pan7.setBounds(306, 272, 34, 34);
				pan7.add(eti07);
				pan7.setOpaque(false);
				Grilla.add(pan7);
				ArrCoor[6]=new Coordenadas(306,272);
				
				eti08=new JLabel();
				pan8=new JPanel();
				eti08.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Baliza copia.gif"))));
				pan8.setBounds(374, 238, 34, 34);
				pan8.add(eti08);
				pan8.setOpaque(false);
				Grilla.add(pan8);
				ArrCoor[7]=new Coordenadas(374,238);
				
				eti09=new JLabel();
				pan9=new JPanel();
				eti09.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/nafta.gif"))));
				pan9.setBounds(442, 306, 34, 34);
				pan9.add(eti09);
				pan9.setOpaque(false);
				Grilla.add(pan9);
				ArrCoor[8]=new Coordenadas(442,306);
				
				eti010=new JLabel();
				pan10=new JPanel();
				eti010.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Caja copia.gif"))));
				pan10.setBounds(476, 306, 34, 34);
				pan10.add(eti010);
				pan10.setOpaque(false);
				Grilla.add(pan10);
				ArrCoor[9]=new Coordenadas(476,306);

				eti011=new JLabel();
				pan11=new JPanel();
				eti011.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/Caja copia.gif"))));
				pan11.setBounds(476, 102, 34, 34);
				pan11.add(eti011);
				pan11.setOpaque(false);
				Grilla.add(pan11);
				ArrCoor[10]=new Coordenadas(476,102);
				
				eti012=new JLabel();
				pan12=new JPanel();
				eti012.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan12.setBounds(68, 170, 34, 34);
				pan12.add(eti012);
				pan12.setOpaque(false);
				Grilla.add(pan12);
				ArrCoor[11]=new Coordenadas(68,170);

				eti013=new JLabel();
				pan13=new JPanel();
				eti013.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan13.setBounds(272, 68, 34, 34);
				pan13.add(eti013);
				pan13.setOpaque(false);
				Grilla.add(pan13);
				ArrCoor[12]=new Coordenadas(272,68);
				
				eti014=new JLabel();
				pan14=new JPanel();
				eti014.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan14.setBounds(578, 306, 34, 34);
				pan14.add(eti014);
				pan14.setOpaque(false);
				Grilla.add(pan14);
				ArrCoor[13]=new Coordenadas(578,306);

				eti015=new JLabel();
				pan15=new JPanel();
				eti015.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/puntos.gif"))));
				pan15.setBounds(544, 102, 34, 34);
				pan15.add(eti015);
				pan15.setOpaque(false);
				Grilla.add(pan15);
				ArrCoor[14]=new Coordenadas(544,102);

				eti016=new JLabel();
				pan16=new JPanel();
				eti016.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));
				pan16.setBounds(68, 238, 34, 34);
				pan16.add(eti016);
				pan16.setOpaque(false);
				Grilla.add(pan16);
				ArrCoor[15]=new Coordenadas(68,238);

				eti017=new JLabel();
				pan17=new JPanel();
				eti017.setIcon((new ImageIcon(getClass().getClassLoader().getResource("Visual/Imagenes/cono copia.gif"))));
				pan17.setBounds(170, 238, 34, 34);
				pan17.add(eti017);
				pan17.setOpaque(false);
				Grilla.add(pan17);
				ArrCoor[16]=new Coordenadas(170,238);

			}
			
		}

